#include <stdio.h>


int main(int argc, char* argv[])
{
	if(argc != 2)
	{
		fprintf(stdout,"参数error\n");
		return 1;
	}
	char line[64];
	FILE* fp = fopen(argv[1],"r");
	if(fp == NULL)
	{
		perror("fopen");
		return 2;
	}
	while(fgets(line,sizeof(line),fp) != NULL)
	{
		fprintf(stdout,"%s",line);
	}
	fclose(fp);
	return 0;
}
